package com.wyp.service.impl;


import com.wyp.controller.GoodsController;
import com.wyp.dao.GoodsMapper;
import com.wyp.dao.MSGoodsMapper;
import com.wyp.service.GoodsService;
import com.wyp.utils.redis.RedisService;
import com.wyp.vo.GoodsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Oliver
 */
@Service
public class GoodServiceImpl implements GoodsService {
    @Autowired
    RedisService redisService;
    @Autowired
    MSGoodsMapper MSGoodsMapper;


    @Override

    public List<GoodsVO> getGoodsVoList() {
        return MSGoodsMapper.selectGoodsVOs();
    }

    @Override
    public GoodsVO getGoodsVOById(Long goodsId) {
        return MSGoodsMapper.selectGoodsVOById(goodsId);
    }
}
